package com.itheima.dao;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    public List<User> findAll();
    public List<User> findById(int i);

    public List<User> findByName(String s);
    public  int saveUser (User user);
    public int updateUser(User user);
    public int saveUserById(User user);
    public int  deleteUser(Integer id);

    User login(@Param("username") String name,@Param("password")String password);


    List<User> findByCondition(User user);
    List<User> findByCondition1(User user);

    List<User>findUserInId(List<Integer> ids);

    List<User> findUserInIds2(Integer[]arr);

    void update(User user);

    List<User> pageQuery();
}
